#include <sstream>
#include <iostream>
#include <string>
#include <boost/thread.hpp>
#include <ros/ros.h>
#include <pluginlib/class_list_macros.h>
#include <nodelet/nodelet.h>

#include "mv_driver.h"

namespace mv_driver
{

class MVDriverNodelet : public nodelet::Nodelet
{
public:
    MVDriverNodelet() {}
    ~MVDriverNodelet() {}

private:
    virtual void onInit();
    boost::shared_ptr<MvDriver> dvr_;
};

/** @brief Nodelet initialization. */
void MVDriverNodelet::onInit()
{
    dvr_.reset(new MvDriver(getNodeHandle(), getPrivateNodeHandle()));
}

} // namespace mv_driver

// Register this plugin with pluginlib.  Names must match nodelets.xml.
//
// parameters: class type, base class type
PLUGINLIB_EXPORT_CLASS(mv_driver::MVDriverNodelet, nodelet::Nodelet)
